#import <Foundation/Foundation.h>
#import "MTTetrominosBoard.h"

#define PIECE_WIDTH 4
#define PIECE_HEIGHT 4

enum SHAPE
{
	I_SHAPE = 0,
	J_SHAPE = 1,
	L_SHAPE = 2,
	O_SHAPE = 3,
	S_SHAPE = 4,
	T_SHAPE = 5,
	Z_SHAPE = 6
};

enum ORIENTATION
{
	NORMAL = 0,
	CLOCKWISE = 1,
	OPPOSITE = 2,
	COUNTERCLOCKWISE = 3
};

@interface MTTetrominosPiece : NSObject
{
	int _piece[16];
	int _orientation;
	int _pieceType;
	int _pieceColor;
}

-(MTTetrominosPiece*) initWithPiece: (int) piece withColor: (int) color;
-(MTTetrominosPiece*) initWithPiece: (int) piece;
-(int) originX;
-(int) originY;
-(int) orientation;
-(int) pieceType;
-(int) pieceColor;
-(int) getMask: (int)x : (int)y;
-(void) setOrientation: (int)orientation;
-(int) getOrientation;
-(void) setPieceColor: (int)pieceColor;
-(void) selectShape: (int) shape;

@end